package com.jia.leetCode;

/**
 * @program: Leetcode
 * @description: 201. Bitwise AND of Numbers Range
 * @author: STU756
 * @create: 2020-08-16 22:31
 */
public class Pro0201 {
    public int rangeBitwiseAnd(int m, int n) {
        int i=0;
        while(m!=n) {
            m>>=1;
            n>>=1;
            i++;
        }
        return m<<i;
    }
}
